package com.greatmap.utils;

import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.io.ParseException;
import org.locationtech.jts.io.WKBReader;


public class ShpUtil {


    /**
     * wkb转几何对象
     *
     * @param hex 十六进制
     * @return {@link String}
     */
    public static Geometry Wkb2Geom(String hex) throws ParseException {
        byte[] bytes = WKBReader.hexToBytes(hex);
        return new WKBReader().read(bytes);

    }


}
